using System.Data;
using AutoMapper;

namespace DaoService.Services;

public class ServiceProvider
{
    private static IDbConnection _connection = ConnectionUtil.CreateMySqlConnection("packagingrobot");
    
    public static PlcInfoService PlcInfoService
    {
        get
        {
            return new PlcInfoService(_connection);
        }
    }

    public static PlcInfoVariablesService PlcInfoVariablesService
    {
        get
        {
            return new PlcInfoVariablesService(_connection);
        }
    }
}